<div class="col-md-12 col-sm-12 col-xs-12">
    <div class="x_panel">
        <div class="x_title">
            <h2>{$pri_name} <small></small></h2>
            <ul class="nav navbar-right panel_toolbox">
                {:check_create('create',['type_id'=>input('type_id')])}
            </ul>
            <div class="clearfix"></div>
        </div>
        <div class="x_content">
            <p class="text-muted font-13 m-b-30">
                <code>说明:</code>{$code}
            </p>
            <form id="search" action="{:url('index')}" />
<!--            {foreach :input() as $key => $value}-->
<!--            <input type="hidden" name="{$key}" class="form-control" value="{$value}">-->
<!--            {/foreach}-->
            <input type="hidden" name="page" value="1"/>
            <div class="well" style="overflow: auto">
                <div class="col-md-2">
                    <input type="text" name="title" autocomplete="off" class="form-control" placeholder="请输入搜索内容..." value="{:input('title')}">
                </div>
                <div class="col-md-1">
                    <select name="type_id" class="select2 js-states form-control"  style="width: 100%;">
                        <option value="0">全部类型</option>
                        {volist name="$banner_type" id="item"}
                        <option value="{$item.id}" {eq name=":input('type_id')" value="$item.id"}selected{/eq}>{$item.title}</option>
                        {/volist}
                    </select>
                </div>
                <div class="col-md-2">
                    <input type="text" name="create_time" autocomplete="off" class="form-control" id="interval_timer" style="width: 100%" placeholder="请选择时间区间..." value="{:input('create_time')}">
                </div>

                <div class="col-md-1">
                    <button type="submit" class="btn btn-success">搜 索</button>
                </div>
            </div>
            </form>
            <div style="overflow: auto">
                <table id="datatables" class="table table-striped table-bordered">
                    <thead>
                    <tr>
                        <!--<th><input type="checkbox" onclick="CheckAll(this.checked)"></th></th>-->
                        <th>
                        <input type="checkbox" onclick="CheckAll(this.checked)"></th>
                    </th>
                        <th width="40" style="text-align: center;">ID</th>
                        <th >标题</th>
                        <th >类型</th>
                        <th >多个图片</th>
                        <th width="60">状态</th>
                        <th width="60">排序</th>
                        <th width="140">创建时间</th>
                        <th width="130">操作</th>
                    </tr>
                    </thead>

                    <form id="form_volist">
                     <tbody>
                        {volist name="data" id="vo"}
                        <tr>
                            <th width="20">
                        <input type="checkbox" name="id[]" value="{$vo.id}"/>
                    </th>
                            <td width="40" style="text-align: center;">{$vo.id}</td>
                            <td>{$vo.title}</td>
                            <td>{$vo.type_title}</td>
<td  align="center"><img  style="margin-right: 2px;"  height="25" src="{$vo.single_pic}" /></td>
<td align="center">
                                <label>
                                    <input type="checkbox" class="js-switch" {eq name="$vo.status" value="1"}checked{/eq} onclick="Check('{:url('check',['id' => $vo['id'],'check' => 'status'])}')"  />
                                </label>
                            </td>
<td width="60"><input width="60" style="border: none;" type="text" name="sort[{$vo.id}]" value="{$vo.sort}"></td>
                            <td>{$vo.create_time}</td>
                            <td>
                                {:check_update('update',['id' => $vo.id])}
                                {:check_destory('destory',['id' => $vo.id])}
                            </td>
                        </tr>
                        {/volist}
                    </tbody>
                    </form>

                        <script>
                            $('#upload').click(function () {
                                $("#read").submit();
                            });
                        </script>
                    <tfoot align="left">
                    <tr>
                        <td colspan="100">
                            <span>控制：</span>
                            <a style="color:#428BCA;cursor: pointer" onclick="index_update('{:url(\'index_update\')}')">更新排序</a>
                        </td>
                    </tr>
                    </tfoot>

                </table>
            </div>

            <div style="text-align: right;">{$data|raw}</div>
        </div>
    </div>
</div>

